box-sizing border-box vs content-box css

55

.div1{
  box-sizing: content-box; /* This is the default value. The padding and border are not included in element’s width and height. */
}
.div2{
  box-sizing: border-box; /* The padding and border are included in the element’s width and height. */
}

Comments

Submit
0 Comments